used this.innerHTML = ""; to make empty() shorter