Updated for Cordova 3.0.0