title: Javascript sup() not working
body: <p>I'm trying to write a script that takes a string, and whenever there is a letter, the next number is superscripted. To do this, I split the string into an array and loop through it - whenever I find a letter, I run sup() on the next array element. </p>
  
  <p>JS</p>
  
  <pre><code>var ec = "1s2 2s4".split("");
  for (var i = 0; i &lt; ec.length; i++) {
      if (ec[i].match(/[a-z]/i)) {
          ec[i + 1].sup();
      }
  }
  </code></pre>
  
  <p>But when I do this, nothing happens to the numbers I ran sup() on. Why is this?</p>
  
  <p>JSfiddle: <a href="http://jsfiddle.net/yxj143az/7/" rel="nofollow noreferrer">http://jsfiddle.net/yxj143az/7/</a></p>