Lints the file and simplifies the code

- `config.json` can be read with a simple require
- Also adds jslint directives