client, repl: better "error" handling

Properly catches the SyntaxErrors in most of the browsers now.
Could probably use some improvement but this is a good start...
Merge pull request #6 from TooTallNate/update/better-error-handling

client, repl: better "error" handling