jQuery plugin to execute a callback only after all deferreds have been resolved or rejected