How to add correctly script within brackets
<p>I'd like to edit some js file. I want those images to be swapped on hover. Now this shows error with coding, how should I do this correctly. I'm using this plugin <a href="http://code.google.com/p/jquery-swapimage/" rel="nofollow">http://code.google.com/p/jquery-swapimage/</a>:</p>

<pre><code>if ( shutterLinks[ln].num &gt; 1 ) {
    prev = shutterSets[shutterLinks[ln].set][shutterLinks[ln].num - 2];
    prevlink = '&lt;a href="#" id="prevpic" onclick="shutterReloaded.make('+prev+');return false"&gt;  &lt;img class="swapImage {src: 'images/2.gif'} src="images/1.gif" /&gt; &lt;/a&gt;'+dv;
    previmg = new Image();
    previmg.src = shutterLinks[prev].link;
} else {
    prevlink = '';
}
</code></pre>

<p>The line I want to edit is:</p>

<pre><code>prevlink = '&lt;a href="#" id="prevpic" onclick="shutterReloaded.make('+prev+');return false"&gt;  &lt;img class="swapImage {src: 'images/2.gif'} src="images/1.gif" /&gt; &lt;/a&gt;'+dv;` 
</code></pre>
