title: Errors with File plugin on PhoneGap application
body: <p>I'm trying to save user information in a phonegap application but upon trying </p>
  
  <pre><code>window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fs) {
  
  console.log('file system open: ' + fs.name);
  fs.root.getFile("newPersistentFile.txt", { create: true, exclusive: false }, function (fileEntry) {
  
      console.log("fileEntry is file?" + fileEntry.isFile.toString());
      // fileEntry.name == 'someFile.txt'
      // fileEntry.fullPath == '/someFile.txt'
      writeFile(fileEntry, null);
  
  }, onErrorCreateFile);
  
  }, onErrorLoadFs);
  </code></pre>
  
  <p>I get the error</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: onErrorLoadFs is not defined</p>
  </blockquote>
  
  <p>and on commenting it out I get</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: onErrorCreateFile is not defined</p>
  </blockquote>
  
  <p>and finally on commenting that out I get </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: writeFile is not defined </p>
  </blockquote>
  
  <p>I am also running </p>
  
  <pre><code>window.addEventListener('filePluginIsReady', function(){ 
  
                          console.log('File plugin is ready');
  
                      requestFileSystem(LocalFileSystem.TEMPORARY, 5 * 1024 * 1024, function (fs) {
  
                          console.log('file system open: ' + fs.name);
                          createFile(fs.root, "newTempFile.txt", false);
  
                  }, onErrorCreateFile);
  </code></pre>
  
  <p>Incase the error was stemming from the file plugin not being ready but again I'm met with the error </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: createFile is not defined</p>
  </blockquote>
  
  <p>Any suggestions or help would be greatly appreciated!
  Thanks for your time!  </p>