title: How to select and replace the whole page with jQuery
body: <p>My design of a page forces me to refresh the whole page with html that I have loaded via ajax.</p>
  
  <p><code>$('html').replaceWith(data);</code></p>
  
  <p>Gives me errors. Any ideas?</p>