jshint

JSHint is a community-driven tool to detect errors in JavaScript code and enforce your team's coding conventions.