Convert to Cordova 3.x interface