Added new error handling, any errors that occur during or after page load (not including warnings or 404 errors) are no longer logged in the JS console and instead are logged inside a file called "diagnosticReport" and also trigger a windows xp error prompt/popup.