JSHint trivial fixes

Hi there, we are using your tool a lot.
and it has helped us as CLI for json.

here si a trivial contribution from us, fixing several JSHint errors and making your code bit better.