Possible Duplicate:
HTML formatter/tidy/beautifier for JavaScript
I'm looking for a good automated javascript cleaner (as in locates and fixes errors), similar to the w3c validator's cleaner function (that fixes the javascript errors).
Update: Thanks to a helpful responce I found my solution: Closure Linter.