Capturing in IIFEs

Closures and nested functions in JavaScript using IIFEs.