title: Download HTML of a webpage that is changed by JavaScript
body: <p>The program I am writing is in Java.</p>
  
  <p>I am writing a little program that will download the html of webpages and save them.  It works easily for basic pages that don't use JavaScript.  But how can I download the page if I want it after a script has updated it?  The page I am dealing with is actually updated by Ajax which might be one step harder.</p>
  
  <p>I understand that this is probably a difficult problem that involves setting up a JavaScript run time environment of some kind.  I am prepared for a solution of any level of difficulty, I just don't know exactly how to approach it or where to get started.</p>