Writes the o/p to d3.js