d3 to npm, with shim