Improve error formatting in browser REPL.
Use a text input for the browser REPL.