Simple mean median and mode in node.js.