Update regression.js

Linear Regression function returns an object, not an array. Previously, it was returning NaN for "y"