Prepare table for Shadow DOM