// script [...] var th = document.getElementById("myTH"); th.tagName = "td"; [...]