Fixed stream problem between js and C++.

I've abandoned UTF-8 for now. I think it's not impossible, but I'm
relying on lots of ASCII codes for now. Anyway, backspace works now
and the tokenization works. Next up is correcting the fact that the
tree works, but the method doesn't.