Shouldn't this be done on the individual `$.ajax()` calls? I think this will have a global side effect won't it?