getScript can be replaced with the following, but there are bugs in IE, onreadystatechange doesn't seem to provide the notification at the correct time.

var script = document.createElement('script');

// Internet Exploder script.onreadystatechange = function() {

alert(script.readyState);

if (script.readyState == "complete") {
        callback();
}

};

// Every other modern browser script.onload = callback;

script.type = “text/javascript”; script.src = path;

document.getElementsByTagName(‘head’).appendChild(script);