RTrim in javascript
<p>I am having a problem with jQuery's trim.  I have a string such at in jQuery:</p>

<pre><code>var string1;
string1 = "one~two~";
</code></pre>

<p>How do I trim the trailing tilde?  </p>
