Removed alerts in the javascript files

Changed the HeadController to correctly load a different nav if you are logged in.
When logged in the user will see the nav5_2.php navigation bar, which includes their first name and a logout button which currently does not work.