js based turing machine interpreter