// Includes a javascript or a css file on the fly, unless one exists with the same id attribute function include_once(url, id, randomise, onload) { var head = document.getElementsByTagName('head').item(0); for (var i=0; i