- added jslint
- code refactor