Browser REPL improvements

Addresses #51 and #52.