An Turing machine in Javascript