Rewriting in D3 to generate a SVG instead of div's