jQuery conflicts (not in Chrome)
<p>I am writing a widget and am depending on jQuery so i need to use the noconflict in order to avoid problems for pages where site owners are also running jQuery.</p>

<p>I have this so far:</p>

<pre><code>(function () {

    var js13;

var script = document.createElement('script');
script.src = 'http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);

var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-1.8.3.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);

var script = document.createElement('script');
script.src = 'http://code.jquery.com/ui/1.9.2/jquery-ui.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
script.onload = scriptLoadHandler;      


function scriptLoadHandler() {
    js13 = window.jQuery.noConflict(true);

    main();

}



/******** Main function ********/
function main() {
    js13(document).ready(function ($) {


     main widget code is here.....

} // main

})();
</code></pre>

<p>Any ideas what could be wrong? I am getting (Safari):</p>

<pre><code>Type Issue
'undefined' is not an object (evaluating 'window.jQuery.noConflict') 
</code></pre>

<p>Need it to work in all browsers, no matter what jQuery or other scripts a page is running.</p>

<p>Another problem is that <a href="http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js" rel="nofollow">http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js</a> is not always loading..</p>

<p>I neeed that to load before the rest loads</p>
