title: Create and save a file with JavaScript
body: <p>I have data that I want to write to a file, and open a file dialog for the user to choose where to save the file.  It would be great if it worked in all browsers, but it has to work in Chrome.  I want to do this all client-side.</p>
  
  <p>Basically I want to know what to put in this function:</p>
  
  <pre><code>saveFile: function(data)
  {
  }
  </code></pre>
  
  <p>Where the function takes in data, has the user select a location to save the file, and creates a file in that location with that data.</p>
  
  <p>Using HTML is fine too, if that helps.</p>