corrected javascript on home page