For when you want to send javascript errors to server for logging.