added `to-html' method to graph-json using d3