CB-6954 Share events.js between cordova and plugman