function LoadFunction() { } //create a Script loader object + function to be called when the script has //finished loading window.ScriptLibrary = new ScriptLoader(LoadFunction); //url , false - cache, true - no cache ScriptLibrary.Load('//FileName.js', true);