[doc] Added a prototype with options and events
Update README.markdown

Wording
Extracted the js prototype from the README file.
Merge pull request #145 from COil/master

[doc] Added a prototype with options and events