JS tidy - updateVals broken up

broke up into functions
console.log express port