update javascript for select menu