;(function($) {
$.fn.textfill = function(options) {
        var defaults = { innerTag: 'span', padding: '10' };
        var Opts = jQuery.extend(defaults, options);

        return this.each(function() {
            var ourText = $(Opts.innerTag + ':visible:first', this);
            var fontSize = parseFloat(ourText.css('font-size'),10);
            var doNotTrepass = $(this).width()-2*Opts.padding ;
            var textWidth;
				console.log(doNotTrepass);
            do {
                ourText.css('font-size', fontSize);
                ourText.css('zoom',1)
                ourText.css('line-height','120%');
                textWidth = ourText.width();
                fontSize = fontSize + 1;
            } while (textWidth <= doNotTrepass );
        });
    };
})(jQuery);
