Global error handling in browsers

Handling window.onerror to report all errors back to the server-side