Mundane fixes

* Fix HTML5 doctype
* Fix `<p>` tags
* Fix `<script>` and `<link` positions for parallel resource loading

It should be noted that function definitions are hoisted to the top of the scope, so the functions you have at the bottom are actually run on top.