How would you implement a constructor together with named functions on an object in JavaScript?
This is how I'd like to use the object:
o("..."); // use the object's constructor
o.namedFunction("..."); // use a named member on the object
I don't want to have to "new up" object before it's usable... You could say I want the equivalent of a static class with a bunch of static methods and a constructor.