update js for menu