edit jquery/deferred