jQuery: Promises - made first arg optional