title: How do I change file extension with javascript
body: <p>Does anyone know an easy way to change a file extension in Javascript?</p>
  
  <p>For example, I have a variable with "first.docx" but I need to change it to "first.html".</p>