cordova exec in js file