Kalman filter JS implementation without testing.