adding js click events for the menu and active class toggle