prepare for d3 javascript