old_contents: 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;
  });
  
  });
  
new_contents: var exec = require('cordova/exec');
  
  var AudioPlugin = {
      play: function (successCallback, errorCallback, url) {
          alert('Before exec');
          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;
  
subject: add require statement for cordova.exec in plugin.js