adding dynamic table.js and assignment 6