adds ability to pass filepicker options to the Javascript constructor