PhoneGap.exec = function(success, fail, service, action, args) { ... var r = prompt(JSON.stringify(args), "gap:"+JSON.stringify([service, action, callbackId, true])); ... };