updated js for linking back to homepage

added script from main_page.psp