fix lots of bugs

* fix code style and throw error if no collection removed
* fix NodeJS callback style
* fix emit function 
* fix semicolon code style

I am so interested in this project, and wish to work together.
Do you have a plan for future dev?