Using the appendChild and replaceChild Methods