added documentation for tests
- add some paragraph to HACKING.md
- fixed linting issue in sidetabs.js
- cleaned-up code in eventemitter.js based on feedback