Never mind, finally figured it out. It was the csv function's switch statement, is now:
switch (x) {
case c: case '\n': r[n].push(t.slice(0, -1)); t = ''; break;
case '\r': r[n].push(t.slice(0, -1)); t = ''; i++; n++; r[n] = []; break;
default: break;
}