Lines per second d3.js chart in index.html