Fixed JS error on home page.