Code works in Chrome but infinite loop in IE
<p>I am using this code to dynamically change the text of a span element. It works in chrome, only changing the content of the span once, but does an infinite loop in IE (the count keeps updating and the html text keeps changing). Anyone know how I can fix it or why its happening?</p>

<pre><code>bindFlagUpdate();
function bindFlagUpdate(){
    $(document).bind('flagGlobalAfterLinkUpdate', function(event, data) {
        var string = $('#like-' + data.contentId).html();
        var getNum = string.match(/[0-9]+/g);           
        var count = getNum[0];

        if(data.flagStatus == 'flagged') {
            count++;            
        } else {
            count--;        
        }           
        $('#like-' + data.contentId).html("1 user likes this");

        $(document).unbind();
        bindFlagUpdate();
        return false;
    });
}
</code></pre>

<p>Description of the event:</p>

<blockquote>
  <p>The flagGlobalAfterLinkUpdate event This event is triggered
  immediately after a flag link has been updated. (Flag links appear in
  two flavors: "Bookmark this!" and "Unbookmark this!", and when we
  speak of "update" we mean this change in appearance).</p>
</blockquote>

<p>The even is attached to a "flag" button</p>
