Update JS-lib and enable markov chain