JSMin is a tool to shrink the size of your Javascript files by removing comments and spaces. I also like to put the full source code up in a link in the comments of the HTML so that other coders can get the original stuff to reuse it.
JSLint is a lint, or syntax checker for Javascript.