Add js function to show/hide menus