Add npm and dependencies badges to the readme.
Simplify some code.
Improve example and update version to 1.1.0.
Merge pull request #3 from Buzzvil/docs

1.1.0