finishing the js for the nav and submenus