cordova capturing