Revised line tension D3js graph