Realtime line chart with d3.js