title: detect all JS errors, using JS
body: <p>I know this has probably been asked before, but I can't find where:</p>
  
  <p>I know you can detect JS errors using extensions in stuff, but is there any way to detect ALL errors using JavaScript and display an alert whenever there is one?</p>