updated js for menu