Including JavaScript at runtime is not working in IE8
<p>The below piece of code was working in IE6 &amp; IE7 and almost all versions of FF. It just don't work in IE8. It doesn't work in the sense once I added the script tag in to HTML->HEAD element I don't see the script being loaded in the browser(the alerts in the script doesn't show up). I see the  tags have been inserted in the HTML-HEAD though.</p>

<pre><code>var head = document getElementsByTagName('head')[0];
// Check if the script is already loaded.
if (head ){
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.language = 'JavaScript';
    script.src = '/Tolven/scripts/' + jsFileName;
    head.appendChild(script);       
}
</code></pre>

<p>Does anybody have this issue? Or any clues to resolve this?</p>
