You can dynamically insert a tag <script/>into your document, here is a script that will work in firefox / chrome, you may need a little tweaking in IE:
loadJs = function(src) {
var script = document.createElement('SCRIPT');
script.setAttribute('src', src);
document.getElementsByTagName('HEAD')[0].appendChild(script);
}
, document.onload, window.InforWindow .
document.addEventListener('load', function () {
}, false);
, IE :
document.attachEvent('onload', function() {
});