title: jQuery appendTo function not working
body: <p>Why is my function not working:</p>
  <p><a href="http://jsfiddle.net/c5r6P/25/" rel="nofollow noreferrer">FIDDLE</a></p>
  <p>HTML:</p>
  <pre><code>&lt;div class=&quot;cash&quot;&gt;1234.00&lt;/div&gt;
  &lt;div class=&quot;cash&quot;&gt;123456.00&lt;/div&gt;
  &lt;div id=&quot;total&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>JS:</p>
  <pre><code>function formatPrice(price) {
      return price.reverse().replace(/((?:\d{2})\d)/g, '$1 ').reverse();
  }
  
  // Need to extend String prototype for convinience
  String.prototype.reverse = function() {
      return this.split('').reverse().join('');
  }
  
  $('.cash').each(function(){
      $(this).html().formatPrice().appendTo('body');
  });
  </code></pre>
  <p>I tried this as well, no luck:</p>
  <pre><code>$('.cash').each(function(){
      $(this).html() = i;
      formatPrice(i).appendTo('body');
  });
  </code></pre>
  <hr />
  <p>Even whenstripping it down to a basic function, it still does not append my stuff...Am I losing my mojo?</p>
  <pre><code>$('.cash').each(function(){
      $(this).html().appendTo('body');
  });
  </code></pre>
  <p>Thanks</p>
  <p>UPDATE: The function is just suppose to do this:</p>
  <p>formatPrice('1234.00')  //convert to &quot;1 234.00&quot;
  formatPrice('123456.00') //convert to &quot;123 456.00&quot;</p>