Basic CSV parsing/encoding in JavaScript.