Adding a script reference into a page using jQuery
<p>I need to dynamically add a script reference, so I do this:</p>

<pre><code>jQuery('html head').append("&lt;script src='somesource.com/somejs.js'&gt;&lt;\/script&gt;")
</code></pre>

<p>and it does't work - I don't get any errors but I can't execute any of the methods defined inside that script.</p>

<p>Any ideas what I am doing wrong?</p>
