What I would live is some JS validator that could be instructed to go over all the JS files we have.
Good idea, I might try something with the JSLint/JSHint API.