Allows filtering of picklists using javascript