direct reference to phonegap/cordova.js deleted + function added that aborts all ajax call when onpopstate is fired