adding things to mainmenu.js for the profile as well as a new php function