updated js for linking back to homepage

added script from main_page.psp
Merge pull request #19 from josephbooth/master

333