There's a minor bug in the HTML for the blacksmith.tcl page.
For armor, the <td> element for the upgrade costs is not closed. For example:
<tr> <td colspan=2>A Pair of Leather Boots</td> <td width=1% align=right>4</td> <td><select ...> <option value=7_0>+7 ($0)</option> <option value=8_18291>+8 ($18,291)</option> ...more options... </select> </tr>
For weapons, the <td> element for the to-hit upgrade cost is closed by a </tr> instead of a </td>. For example:
<tr> <td>3,594 Arrows</td> <td align=right>8</td> <td><select ... > <option value=4_0>x5 ($0)</option> <option value=5_22027>x6 ($22,027)</option> ...more options... </select></td> <td colspan=2 align=right><select ...> <option value=4_0>+4 ($0)</option> <option value=5_3938>+5 ($3,938)</option> ...more options... </select></tr> </tr>