Basic Ensemble Kalman Filter implementation in javascript