Similar to Underscore.js _.defer