Change js file to use cordova.exec