Made Element.appendChild generic to avoid red underlines from IntelliJ