Partial duplicate of this
Notes: I already use JSLint extensively via a tool I wrote that scans in intervals my current project directory for recently updated/create
May not be exactly what your after, but Google's Javascript optimizer is worth a look.