working d3 drawing