Convert delimited string to object in javascript
<p>I'm trying to convert a delimited key/value string into an object in javascript and finding my javascript-fu lacking. </p>

<p>I have something like: </p>

<pre><code>"rating:1,2,3"
</code></pre>

<p>and I'd like to turn it into something like </p>

<pre><code>{rating: [1,2,3]}
</code></pre>

<p>Anyone know how to accomplish this</p>
