title: Result of expression 'xxxx' is not a constructor in JS
body: <p>Trying to create an object in Javascript (for Appcelerator/Titanium).
  The "object" is defined like this:  </p>
  
  <pre><code>function server () {
      this.cacheimages = 0;
      this.login = "";
      this.name = "";
      this.root = "";
      this.signup = "";
      this.useimages = 0;
      this.userexists = "";
      this.isdefault = 0;
  
      return this;
  }
  </code></pre>
  
  <p>In the same file, in another function when I run this line: <code>var server = new server();</code> I get the error <code>Result of expression 'server' is not a constructor.</code><br>
  I have tried it with and without the "return" line, neither work.  What am I doing wrong?</p>