move the (very short) code from filtered_table.js to html