Creating paths for d3