Turing machine emulator in JS.