added javascript for dropdown