Changed position of inserted code

The code is now inserted at the end of the document, before the </body> tag to achive compliancy with w3c standards since the <noscript> tag is not allowed in the head.

Thanks to Andreas Wulf for the suggestion.