Fixed javascript in homepage.html