Add function to object
<p>I have the following code</p>

<pre><code>var PROMO = PROMO || {};

PROMO.Base = (function () {
  var _self = this;

  var Init = function () {
    WireEvents();
  };

  var WireEvents = function () {
   //wire up events
  };

} ());
</code></pre>

<p>In the same file I have the code to call the above function</p>

<p>I am trying to get to an end point where I can use the following code</p>

<pre><code> $(document).ready(function () {
    PROMO.Base.Init();
 });
</code></pre>

<p>this gives the error</p>

<pre><code>Cannot call method 'Init' of undefined
</code></pre>

<p>Now I know there are many ways to write javascript, but in this case I want to be able to call my functions, or least the Init method in the way shown above. </p>
