How do I pass the required jQuery object down into inside objects?
<pre><code>    jQuery.fn.extend({
    fillCurrency : (function() {
        $this = jQuery(this);

        function _usd(string1) {
            $this.text("$" + parseFloat(string1).toFixed(2));

            return $this;
        }

        return {
            usd : _usd
        };
    })()
});


var text = 2;
jQuery("#total").fillCurrency.usd(text);


&lt;p id="total"&gt;&lt;/p&gt;
</code></pre>

<p>Tried several options and I think I have now come close. The issues is now Object [object global] has no method 'createDocumentFragment'. Does someone know what the issue is here?</p>
