How do I make this link work in javascript
<p>Ok basically I have this javascript file <a href="http://assets.revback.com/scripts/share1.js" rel="nofollow">http://assets.revback.com/scripts/share1.js</a> that basically adds a bunch of share buttons via javascript.</p>

<p>What I want to do, is change the twitter image link to use an url shortener: </p>

<p>so instead of:</p>

<pre><code>&lt;a href=\"http:\/\/twitter.com\/home?status=Interesting Post:(UURRLL)\" title=\"Click to share this page on Twitter\"&gt;&lt;img src=\"http:\/\/assets.revback.com\/scripts\/images\/twitter.png\" border=\"0\"\/&gt;&lt;\/a&gt;
</code></pre>

<p>I want to use </p>

<pre><code>&lt;a href="#" onClick="window.location='http://ko.ly?action=shorten&amp;uri=' + window.location + '&amp;dest=twitter.com/?status=Reading ';"&gt;&lt;img src=http://assets.revback.com/scripts/images/twitter.png"&gt;&lt;\/a&gt;
</code></pre>

<p>but I need that bottom one, to be written with javascript friendly syntax. i.e. like in the top one, instead of http://, you have http:\/\/</p>
