Fix js events
Code style
Merge pull request #1 from marmelab/fix_js_events

[RFR] Fix js events