changed javascript for adv search dropdown