I\'m getting following error while appending a newly created element to an already existing element
Uncaught TypeError: top.appendChild is not a function