https://codetofun.com/jquery/deferred-resolvewith/
jQuery deferred.resolveWith() Method