AngularJS enables you to control the DOM via modules, apps, and controllers -- all without polluting the global namespace.
This lecture contains downloadable source code. Download the file below and unzip (or extract) it.