now require('d3') will make global window and document objects