If you're running Apache, installing mod_gzip would speed up more than just JavaScript, with less headache.
There may be a similar solution for other web servers, but I'm not aware of it. (Doesn't mean it would be difficult to write, if you have access to some rewriting rules based on accept headers.)
Comment on Re: Compressing/Obfuscating Javascript file