ImagePreview and ImagePicker widget not loading properly due to js errors