Javascript Markov modeling library