Rework so page-specific javascripts are set in controller and load in the header