Correct error javascript on home