no new before constructor
function MyConstructor(foo){ if (!(this instanceof MyConstructor)){ return new MyConstructor(foo); } this.foo = foo; return this; }