Fix html validation errors

Fixed a number of HTML validation errors, mainly improperly formed <link> and <script> tags.