dice up a string in JS
<p>I have a string like this</p>

<pre><code>4741:GREEN,CIRHOSIS,ORANGE,Long-term,GREEN,HIS B CHIC,4642:GREEN,CRHOSIS,GREEN,HSysk B CC,
</code></pre>

<p>the sting contains two records with record ID 4741 and 4642 separated by  character. Also within the records everything else is separated by comma(,)</p>

<p>how can I split this sting. Please note that this example string contains only 2 records but the other ones may contain more or less or none. 
Thank you for your help!</p>
