Some nice reading about it: http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html