While it checks for different things than JSLint, the fixjsstyle
mode of the Google closure linter may do what you want.
It automatically fixes code to (more closely) fit with the Google Javascript style guide which is well worth a read.
As others have pointed out, the Javascript beautifier is the way to go for spacing issues.