title: rename a file in javascript
body: <p>i want to ask that if i want to rename a file in javascript, what can i do ? i have try a function which i see it online but cannot work.</p>
  
  <pre><code>function ChangeFileName()
  {
      var fso, f;
      fso = new ActiveXObject("Scripting.FileSystemObject");
      f = fso.GetFile("FilePath/MyFile.txt");
      f.name = "MyFile.htm";
  } 
  </code></pre>
  
  <p>i search online and it says that the ActiveXObject is only available for IE and i intended to use it on mozilla because mozilla comes with ubuntu.</p>
  
  <p>beside this, is there any method that i can rename a file inside the javascript ? thanks in advance for your help .</p>