Make fatal exception available from JS library

If a call to MiniGrace.compilerun exits with an exception, that error
will be made available in the "exception" property so that the user
interface can access it.
Give better debug strings for class/object in JS