Lint using...itself

* [x] Lint lib and tests files using itself.
* [x] Fix linting errors that do not pass gjslint