Update class after animation
<p>I have the following function:</p>

<pre><code>setTimeout(function() { 
    $("#em")
    .animate(
    { left: -15 }, {
        duration: "slow",
        easing: "easeOutBack"
    })
    .animate(
    { left: -315 }, {
        duration: "slow",
        easing: "easeOutBack"
    });                         
}, 2000);
</code></pre>

<p>and I would like to changed the class on another element after the animation is complete</p>

<pre><code>$('.flip').removeClass('ui-icon-carat-1-w').addClass('ui-icon-carat-1-e');
</code></pre>

<p>How do I tie those two together?</p>
