jQuery appendTo function not working
<p>Why is my function not working:</p>

<p><a href="http://jsfiddle.net/c5r6P/25/" rel="nofollow">FIDDLE</a></p>

<p>HTML:</p>

<pre><code>&lt;div class="cash"&gt;1234.00&lt;/div&gt;
&lt;div class="cash"&gt;123456.00&lt;/div&gt;
&lt;div id="total"&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 "1 234.00"
formatPrice('123456.00') //convert to "123 456.00"</p>
