Karma improvements

- add karma to the package.json
- npm test could refer to the local `./node_modules/.bin/karma` executable