title: Replace multiple slashes in text with single slash with Javascript
body: <p>I have this string</p>
  
  <pre><code>we have two papers // two handbags /// three bags //// four bottles
  </code></pre>
  
  <p>I want it to become</p>
  
  <pre><code>we have two papers / two handbags / three bags / four bottles
  </code></pre>
  
  <p>I have tried <code>string.replace(///g, '/')</code> but it doesn't work</p>
  
  <p>It returns a syntax error.</p>