adding call to linear model in server.js
exposing samples as json