Creating statistical operations with JavaScript | Bypeople