javascriptで文字列を分割

var record = 'aaa,bbb,ccc'.split(/,/); // => ['aaa', 'bbb', 'ccc']

ネタ元