Use appendChild() instead of append()
.append() lacks sufficient browser support, but .appendChild() is
well covered and works for our use case (.appendChild() doesn't
allow for appending text, only nodes, but that's acceptable for this)
Bug: T278448
Change-Id: I5aeb42448e83dcb9d74bf9468b3ccbc802ac9e46