The module pattern (first publicized by the Yahoo! JavaScript team) makes use of closures to bake privacy and state into your objects.
This is the generic form…
function() {
//private state
//private functions
return {
//public state
//public variables
}
}