title: javascript on error reload page
body: <p>I am wondering how to best handle javascript errors. My application is pretty javascript intensive and although I'm doing everything possible to test my code, I know that bugs will be inevitable.</p>
  
  <p>Is there a way catch errors and reload the page when they occur? I know about try/catch but rather then adding a bunch of these, I was wondering if there's a way to add something in document.ready that execute a page reload on error.</p>
  
  <p>Thanks for your suggestions.</p>