added javascript snippet for select_dropdown