d3 drawing rectangles and dragging

I think you meant to check the text here instead.