Comment faire pour insérer une ligne dans la table HTML corps en JavaScript

J'ai un tableau HTML avec un en-tête et un pied de page:

<table id="myTable">
    <thead>
        <tr>
            <th>My Header</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>aaaaa</td> 
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td>My footer</td>
        </tr>
    <tfoot>
</table>

Je suis en train d'ajouter une ligne dans tbody avec les éléments suivants:

myTable.insertRow(myTable.rows.length - 1);

mais la ligne est ajoutée dans la tfoot section.

Comment puis-je insérer tbody?