Modification to spit out JSON for d3js testing