Fotiman - 12:07 am on Jul 6, 2012 (gmt 0)
noscript is valid within block level elements. So this would be valid:
If you wrap the contents of your <body> with a div, then move the contents of your script tag into an external file (not including the <script></script> tags), then you could include it by just adding the src attribute:
However, use of document.write should be avoided. Instead, put a placeholder within your HTML, then update that element. The noscript can also be removed. Look into modernizr on ways to deal with that.