playing w/ a javascript turing machine