cordova.define("com-datamart-wfpk.AudioPlugin", function(require, exports, module) { cordova.define("com-datamart-wfpk.AudioPlugin", function(require, exports, module) { var exec = require('cordova/exec');

var AudioPlugin = {
	play: function (successCallback, errorCallback, url) {
		exec(successCallback, errorCallback, 'AudioPlugin', 'play', [url]);
	},
	pause: function(successCallback, errorCallback) {
		exec(successCallback, errorCallback, 'AudioPlugin', 'pause', []);
	},
	changeBitrate: function(successCallback, errorCallback, bitrate) {
    	exec(successCallback, errorCallback, 'AudioPlugin', 'changeBitrate', [bitrate]);
    }
};

module.exports = AudioPlugin;
});

});

@@ -1,174 +1,4 @@
-cordova.define(%22com-datamart-wfpk.AudioPlugin%22, function(require, exports, module) %7B cordova.define(%22com-datamart-wfpk.AudioPlugin%22, function(require, exports, module) %7B 
 var 
@@ -50,17 +50,20 @@
 gin = %7B%0A
-%09
+    
 play: fu
@@ -105,26 +105,62 @@
 ack, url) %7B%0A
-%09%09
+        alert('Before exec');%0A        
 exec(success
@@ -215,21 +215,27 @@
 %5Burl%5D);%0A
-%09%7D,%0A%09
+    %7D,%0A    
 pause: f
@@ -280,10 +280,16 @@
 ) %7B%0A
-%09%09
+        
 exec
@@ -354,13 +354,19 @@
 %5D);%0A
-%09%7D,%0A%09
+    %7D,%0A    
 chan
@@ -436,9 +436,12 @@
     
-%09
+    
 exec
@@ -561,13 +561,4 @@
 in;%0A
-%7D);%0A%0A%7D);%0A

add require statement for cordova.exec in plugin.js