Move d3.js into library file