There are lots of |messageText.textContent = 'some messages'|, it's better to define a single method to do this, but it's also OK to keep them.