Linear regression with Gradient descent implemented in Node.js