cordova Javascript