function load_js() { var head= document.getElementsByTagName('head')[0]; var script= document.createElement('script'); script.src= 'game.js'; head.appendChild(script); } load_js(); function reloadJs(src) { src = $('script[src$="' + src + '"]').attr("src"); $('script[src$="' + src + '"]').remove(); $('