Added javascript for dropdown menus

Added functions to initiate the drop down menus