var head= document.getElementsByTagName('head')[0];

 var script= document.createElement('script');

 script.type= 'text/javascript';

 script.src= 'http://code.jquery.com/jquery-latest.min.js';

 head.appendChild(script);