Migration to cordova