updated js for cordova