Moved regression line calculations to server