Outlier detection of data streams in Javascript