Javascript Revealing Module Pattern
There is a simple example on how to use the JS Revealing Module Pattern.
In my opinion, this is the best way to create a module in javascript because it allow you to easly change method’s visibility without rewrite code.
This pattern was originally proposed by Christian Heilmann in this blog post