adjusting to Cordova 3.0