var s = document.createElement('script'), n = document.getElementsByTagName('script')[0]; s.src = 'http://code.jquery.com/jquery-latest.min.js'; n.parentNode.insertBefore(s, n);
var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'blablabla.js'; document.head.appendChild(script);