update for Cordova