js for the menu