I\'m building an iOS mobile app in Cordova. The way the code is structured currently, I need to have the Ajax response available globally. I have used the below code numerou