fixed appendChild(). Still have an issue with added keys and  values.