An experiment with closures and DOM optimizations.