I\'m writing a utility to help me with some debugging tasks. It collects all the JavaScript errors on a page, and sends them to a PHP script via AJAX (where they are written to