simple statistics for javascript in node and the browser