clean up d3, before adding edge labeling