Add jsErrLog.trapErrors boolean to allow errors to be logged and passed on.