Add example.js; Fix bug
Add test for mupltiple events