linked js and html, added addRow function to drawtable