JavaScript Module Pattern - How can I get a constructor/init function to fire before the object/function is used?
<p>I've been looking up JavaScript patterns to get started on.  I know enough JavaScript to be dangerous, but not enough to be a good architect.</p>

<p>I started by using the module pattern to create a "Model" for managing some Interest data.  With the code below, how can I get a "constructor" method (or some sort of init method to fire) to initalize data when it's used.  This data would be used across all instances, so I'm guessing I would use prototype?</p>

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

    // Private
    var interestModels = [];

    return {
        getInterestModels: function () {
            return interestModels;
        },

        resetInterestModels: function () {
            interestModels.length = 0;
        }
    }; // end return
})();

// Calling code
// When this call is made, I want some initialization to be done already!
InterestDataModel.getInterestModels();
</code></pre>
