using one js file and tables styled