title: Access to returned prototype functions inside another function
body: <p>How would i access the klass.prototype.init function from the global window? This exmaple is from javascript web applciations (orielly).</p>
  
  <pre><code>var Class = function(){ 
      var klass = function(){
              this.init.apply(this, arguments);
          console.log("here");
      };
      klass.prototype.init = function(){
          console.log("another");
      };
      return klass; 
  };
  
  window.Person = new Class;
  </code></pre>
  
  <p>executing Person() will log "here" to the console. I tried accessing the prototype by using Person.klass.init() with no success.</p>
  
  <p>Can someone supplement another way of explaining this? The book says "we could return a function that would set up a new class, the first step in building our own class emulation library:"</p>