Write javascript errors to console.log.