Remove console output from d3 plotting function