It's busted right now, but I think I'm onto something with $.when()