Modules

Why?

  • to avoid cluttering the global namespace

self-executing anonymous function

!function() {
	function foo() {
		// blah
	};

foo();
}();