working on the dropdown nav updated js file