Better handling of JavaScript exceptions.

Their wrapper has saner message and it actually appears in stacktrace.