 1; i <= 38; i++) {
            document.write(`<tr><td>test ${i}</td><td>m2</td></tr>`);
          }
        </script>
      </tbody>
    </table>

    <table>
      <thead>
        <th>This table heading should be sit at the bottom of the page and want to be split. It should get moved onto the next page and repeated for the additional pages.</th>
        <th>B</th>
      </thead>

      <tbody>
        <script>
          // Make a table big enough so that the THEAD of the next table
          // should be