Javascript Kalman filtering. With a hint of classes and math :-D