Adds partial refactoring to remove javascript from the site.