Add new js-lib and enable markov chain analysis