I want to display script errors in a popup alert instead of showing them in the browser console.
window.onerror = function() { var message = /* get error m