changed some tags around and moved the click listener function in mainmenu.js