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.