Added more JS code to the head tag of the home page template.