removing external ref to d3