simple linear regression in d3js