Javascript is fully functional on home.html