modularized block.d3.js a bit to start looking line line-plot.d3.js