Clean up of d3 reference