Use js-module for js file
Update example to use module
Use document events for registration and push
Fix iOS event listening
Update version to 2.2.0