One option is to use Dean Edward's "packer" tool: http://dean.edwards.name/packer/
If your packed file(s) don't work, you may need to run it through JSLint (http://dean.edwards.name/packer/) and fix it up before packing (having proper ending semicolons is a big thing to look out for)