Sometime we need to analyze a page with additional JavaScript libraries, jQeury for example, so it’s helpful to load the javascript dynamically. In this case you can run similar script as following demo shows on browser javascript console:

var js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', 'http://youdomain.com/path-to.js');
document.head.appendChild(js);