Implement tables.js in new plugin system