update js on click menu