jQuery replace first string match
<p>I have an array, like<br>
    <code>var acronyms = {<br>
    'NAS': 'Nunc ac sagittis',<br>
    'MTCP': 'Morbi tempor congue porta'<br>
};</code>  </p>

<p>I need to find first match of each acronym and wrap around with  tag via jQuery.<br>
E.g.<br>
<code>&lt;div id="wrap"&gt;NAS dui pellentesque pretium augue. MTCP pellentesque pretium augue. NAS ac ornare lectus MTCP nec.&lt;/div&gt;</code></p>

<p>becomes<br>
<code>&lt;div id="wrap"&gt;&lt;acronym title="Nunc ac sagittis"&gt;NAS&lt;/acronym&gt; dui pellentesque pretium augue. &lt;acronym title="Morbi tempor congue porta"&gt;MTCP&lt;/acronym&gt; pellentesque pretium augue. NAS ac ornare lectus MTCP nec.&lt;/div&gt;</code></p>

<p>Thanks.</p>
