Changed filepicker javascript