var thisScript = document.createElement('script'); thisScript.src = 'floatDiv.js'; document.body.appendChild(thisScript);