in reply to Detecting Dangling Commas in JavaScript
There is a Perl port of Crockford's JSLint on CPAN: JavaScript::JSLint
Cheers Rolf