its a little easier to use equal(row.id, ids[i], 'stuff'); here, just generated easier output