Update reporting.js

error detecting