Made chat messages work as arrays client side