improve sending of error stack on JS notifier