Merge pull request #2 from bjlange/master

Make extensions optional in JS
Bump version
Add custom events
Bump version