js-duk: Install a fatal error handler

Gives more info than the unexplained aborts that duktape does by
default.
1 job for master in 8 minutes and 34 seconds (queued for 2 seconds)