Include .js files inside a .js file - Javascript

javascript code

function include(file)
{
var script = document.createElement(script);
script.src = file;
script.type = text/javascript;
script.defer = true;
document.getElementsByTagName(head).item(0).appendChild(script);
}
if(Browser.Engine.trident4){
include(js/pngfix.js);
}

* The best solution for your browser load time would be to use a serverside script to join them all together into one big .js file.