Free Source Analysis Software with PMD
PMD is a free analysis tool that can be used to check source programs for common flaws such as empty catch boxes and coding issues, including a copy/paste detector. It is a static code analyzer and identifies issues in Java script along with many others.