prepare d3js