I've been trying to find a way to have "static" methods in Javascript, NodeJS to be exact.
It turns out that using the util.inherits function in NodeJS, this "just works".
The "definition" of static I'm using here is a bit lax, but it's a function that does the same thing when called from the prototype or an instance, and has access to the properties attached to the class it was called against.
To try it out in action without dropping this into a browser or firing up NodeJS: http://jsfiddle.net/Af6xD/4