funcs.js datatable cleanup