title: Load external js file with jQuery
body: <p>Looked for it everywhere, and found the answer but lost. anyone knows how to load an external .js file from another js file?</p>
  
  <pre><code>main_lobj1.onreadystatechange = function(){     
    if (main_lobj1.readyState == 4) {if (main_lobj1.status == 200) { 
      document.getElementById("middleDiv_m").innerHTML=main_lobj1.responseText;  
    jQuery.getScript('jquery/tabs.js')        
    }
  }
  </code></pre>
  
  <p>innerHTML works and responce text is pasted. The problem is that JS is not working in that document. jQuery.getScript should be loading that external js file, but it doesnt</p>