d3 drawing rectangles and dragging