fixed javascript for select

didn't fix google places, but select works with javascript now