Rewiring to adapt to jquery datatable