title: Javascript multiple replace
body: <p>How do you replace all instances of one string with another in javascript?
  Example:</p>
  
  <pre><code>someString = 'the cat looks like a cat'
  anotherString = someString.replace('cat', 'dog');
  </code></pre>
  
  <p>results in anotherString being set to 'the <strong>dog</strong> looks like a <strong>cat</strong>', and I would like it to be 'the <strong>dog</strong> looks like a <strong>dog</strong>'</p>