Added local copy of d3