I can't say I'm a fan of the static usage and would like to avoid it if we can. Container.js should never be mixed into another class; it should always be extended from. Hence, the prototype solution should work fine.