Fix javascript on the home page.