An implementation of hidden Markov model (HMM) in JavaScript.