Well.

Maybe what we're getting here is some sort of race condition since $.ajax isn't synchronous.