JSHint

An online tool that helps to detect errors and potential problems in your JavaScript code.