Shrink your JavaScript with the Google Compiler Rails Plugin

Google docs