Jquery access function outside of var
<p>I'm trying to access my newTokenText function which is outside of my var from within my var. </p>

<pre><code>(function ($) {

// Default settings
    var DEFAULT_SETTINGS = {
        resultsFormatter: function(item, resultSize, index){
            return "&lt;li&gt;" + newTokenText(item[this.propertyToSearch], resultSize, index) + "&lt;/li&gt;"
        },
    }

   init: function(url_or_data_or_function, options) {
        var settings = $.extend({}, DEFAULT_SETTINGS, options || {});
   }


    function newTokenText(value, resultSize, index) {
        if(settings.newTokenText &amp;&amp; resultSize == index) {
            return value + " " + settings.newTokenText;
        }
        return value;
    }

    function populate_dropdown (query, results) {
        if(results &amp;&amp; results.length) {               
            var resultSize = results.length - 1;
            $.each(results, function(index, value) {
                var this_li = settings.resultsFormatter(value, resultSize, index);
            }
        }
    } 
</code></pre>

<p>getting error, newTokenText is not a function. Could somebody tell me how to access this function? </p>
