generating a table from jquery