Show more information in top-level error handler

Modern browsers also provided a column number and an error object (of
which the stack trace can be obtained) to the error handler. Show and
log these if they are available.