Convert to Cordova 3.x interface
Convert to Cordova 3.x interface