title: jQuery + IE8 = Object doesn't support this property or method. How to fix this?
body: <p>IE8 is giving me the following error:</p>
  
  <blockquote>
    <p>Object doesn't support this property or method on custom.js, line 82 character 7</p>
  </blockquote>
  
  <p>Here is the code with line numbers:</p>
  
  <pre><code>78 function transpose(chord, increment){
  79   var scale = ["C", "C#", "D", "Es", "E", "F", "F#", "G", "As", "A", "B", "H"];
  80   return chord.replace(/[CDEFGABH]#?s?/g,
  81   function(match){
  82      var i = (scale.indexOf(match) + increment) % scale.length;
  83      return scale[ i &lt; 0 ? i + scale.length : i ];
  84   });
  85 }
  </code></pre>
  
  <p>What should I change so that the code works in IE8? It works properly in Firefox/Chrome and also in IE9.</p>