Added cordova code