Update PhoneGap / Cordova example for new auth. API