added d3.js to require() in main.js