A simple turing machine simulator with JavaScript