Google just released Closure, which is a compiler to minify JavaScript.
On the product site, it says \"The Closure Compiler has also been integrated with Page Speed\".>
If you need to compile multiple js files or if you would like to simplify compilation process, you may use kjscompiler: https://github.com/knyga/kjscompiler (based on google closure compiler)