rough idea of how to add rows to a table and write an entire table to a JS object