Google released Closure, the library and toolset that powers Docs and other Google products.
Closure includes:
Closure Compiler – removes dead code and rewrites and minimizes what’s left, checks syntax, variable references and types, and warns about common JavaScript pitfalls.
Closure Library – a JS library with widgets, controls, lower-level utilities for DOM manipulation, server communication, animation, data [...]