Remove and replace child.
Change append to appendChild
Check contains