responsive table + tools function js