function called that aborts all ajax call when onpopstate is fired