Added some js functionality to the table