Add test dependencies (mocha & chai)
Lint and clean index.js a bit