Added javascript for dropdown