draw a grid of rectangles using d3