This version is old school.
Please find jQuery plugins on npm.
jQuery Columns
by Michael Eisenbraun
A jQuery plugin to create a HTML tables from a JSON data source. It supports paging, searching, sorting, and theming. Columns is flexible and extensible with an API and support for plugins and custom templates.