fixes mData error with dataTables, adds thead