title: Javascript Prototype not Working
body: <p>Hi I don't know whether this is my mistake in understanding Javascript prototype object .. </p>
  
  <p>Well to be clear I'm new to the Javascript singleton concept and lack clear cut knowledge in that but going through some referral sites I made a sample code for my system but it's giving out some errors which I couldn't find why so I'm asking for your help. My code is:</p>
  
  <pre><code>referrelSystem = function(){
  //Some code here
  }();
  </code></pre>
  
  <p>Prototype function:</p>
  
  <pre><code>referrelSystem.prototype.postToFb = function(){
  //Some Code here
  };
  </code></pre>
  
  <p>I get an error saying prototype is undefined!</p>
  
  <p>Excuse me i thought of this right now </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have used like this: </p>
  
  <pre><code>referrelSystem = function(){
   return{
          login:getSignedIn,
          initTwitter:initTw
      }
  };
  </code></pre>
  
  <p>Is this causing an issue?</p>