Add javascript code style checker

I've only made changes in lib/ again.

The line break length is rather large (150) but can be reduced later.

I've allow spaces inside object brackets, otherwise `{ "a": 1 }` is invalid which must be `{"a": 1}`

If you do `jscs lib/` there is still a jsdoc error, the format overthere is a bit funky, so I'm not sure how it should be expressed.

For `grunt jscs` to pass the tests should also be changed, those are not within this pull request.

The `.jscsrc` uses the google preset, the additional properties are overrides.