getTime, getHTMLText, and added them to elements
Add all elements as childs to div element
Corrected error in calling function renderMessages