User:Shilad~enwiki/foo.js

jQuery.getScript('http://d3js.org/d3.v2.js', function { console.log('script loaded');});