Header bugs fixed

The <head> element contains some assets that are generated in code and inserted into the template. There was an issue with the rendering that made those elements pop out at the end of the page rather than where they were supposed to go.

Bug fixed!