Lint project.

* Use ESLint
* Small refactors