generalizing raw_data.js into table_widget.js and fixing assertion table