Cordova app working