Consolidate JavaScript inclusion into layout.erb

Prior to this commit, JavaScript files were be inluded in both
layout.erb and main.erb. This was not needed since anything that is
included in layout will propagate down into other erb files.

Now, all the include statements have been moved to layout.erb.