Reorganized JS and move things around on the home template.