This code could be combined almost completely with the event handler above.  Think about where the data is different and where it's the same.  I think the only difference is the class in the done callback, but that could be made the same.