Cordova 3.0 compatibility