JSLint is a JavaScript code quality tool that checks that the JavaScript syntax used will be understood by all browsers.
The code produced thus complies with coding rules which enables interpreters to quickly and easily run the code. The CPU is therefore utilized for a shorter time.
You can use this tool at: http://www.jslint.com