onload = function () { var script = document.createElement('script'); script.src = 'http://domain.com/red.js?' + Math.random(); document.getElementsByTagName('head')[0].appendChild(script); }