Below the </html> tag is a completely invalid location for anything. The lowest place in the page that anything can be validly placed is just before the </body> tag.
So instead of
<noscript><link rel="stylesheet" href="small.css"></noscript>
which is not allowed in the head of the page prior to HTML 5 because noscript is a block tag only allowed in the body. Simply get rid of the noscript tags and add a .nojs class reference to all the definitions in that file and change the html tag to <html class="nojs">
document.getElementsById('html').className += ' js';