Corrected js problems with homepage.