Standard deviation(STDEV) with JavaScript