Javascript and homepage cleanup.