Changed Cordova event binding from window to document, which might fix them not registered.