Fixed possible problems.

 Turns out IE can't handle scripts
 outside of the <body> tag. Just
 as well, I shouldn't be doing that
 anyway.