basic javascript syntax question
<p>What does the following javascript code mean? I guess it's defining a function within a function to make it look like OOP? Why the function can return multiple functions? what is the bracket at the end?</p>

<pre><code>var grid_ui = function () {

    function setup_data_source() {}

    return {
        init: function () {},

        set_ds: function(rpt_headers, rpt_rows) {}
    } // return
}();
</code></pre>
