Added "npm test" support
Fix js2-mode syntax warnings
Added test coverage for leading-comma output