add window.onerror in mocha reporter
add window.onerror in mocha reporter