Update regression.js

Linear Regression function returns an object, not an array.