updated js to work with hidden datatable columns