title: JavaScript Namespace a function/class?
body: <p>So say I have a function like so:</p>
  
  <pre><code>function Moo()
  {
      this.someVal = 'blah';
  
      return this;
  }
  
  Moo.prototype = 
  {
  
  }
  </code></pre>
  
  <p>If I instantiate an object from this class doing:</p>
  
  <pre><code>var moo = new Moo();
  
  console.log(moo);
  </code></pre>
  
  <p>I get this in console, rather than the object with the someVal</p>
  
  <pre><code>Window www.domain.com
  </code></pre>