For these getElementsByClassName uses in this method, I suggest putting them in the constructor near the other getElementsByClassName reference, and just create `this` properties for them, so that we do not have to query the dom for each current message change. That will also fit better with existing idiomatic style.