working js version of erf() and cdf(), working on calculateCentile()