Partial duplicate of this
Notes: I already use JSLint extensively via a tool I wrote that scans in intervals my current project directory for recently updated/create
You may want to have a look at jsinspect.
jsinspect ./src
It will print a list of code blocks that are either identical or structurally very similar.
And there's also jscpd.