commented mainmenu.js