var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'blabla.js'; document.body.appendChild(s);