module.exports = function () {
 exports.setEventListener = exports.setDestroyEventListener = function (callback) {
  cordova.exec (callback, undefined, "OnDestroyPlugin", "setEventListener", [])
 }
 exports.setOnPauseEventListener = function (callback) {
  cordova.exec (callback, undefined, "OnPausePlugin", "setEventListener", [])
 }
 return exports
} ()

@@ -200,19 +200,19 @@
 exports.
-set
+add
 OnPauseE
@@ -254,82 +254,58 @@
 %7B%0A  
-cordova.exec (callback, undefined, %22OnPausePlugin%22, %22setEventListener%22, %5B%5D
+document.addEventListener(%22pause%22, callback, false
 )%0A %7D

Update ondestroyplugin.js