upgraded d3.js to version 3