Javascript events documentation
Update onEvent method name
Merge pull request #223 from spark/feature/javascript-events

Added Javascript events documentation