Slimmer just includes the header and footer js

While debugging another issue, @edds noticed that there was a lot of JS being included that wasn't needed.