Adding markov functions and tests
Adding markov javascript