Adds javascript initialization code to name the <tr> rows and <td> cells.