js changes for new select menu