switching from jquery to d3