title: update line in js file with sed
body: <p>I have this line in a file called core.js:</p>
  
  <pre><code>  VERSION: '1.2.3-0',
  </code></pre>
  
  <p>I also have a variable called <code>VERSION</code>.</p>
  
  <p>In a .sh script that I'm writing I want to update <code>VERSION: '1.2.3-0',</code> with the version so that it would look like <code>VERSION: '1.2.4',</code> (or whatever vallue it's set to).</p>
  
  <p>I've tried this but it did not work:</p>
  
  <pre><code>sed 's/\b^VERSION: '[^']/$VERSION/' core.js
  </code></pre>
  
  <p>How do I update this line?</p>