parse a CSV string in JavaScript, return an array of CSV parts