function removeElement(id) {
  var elem = document.getElementById(id);
  elem.parentNode.removeChild(elem);
}
