A debounce function for jQuery Deferreds