Cleaning chat rooms mess

It’s now effective even if I don’t like the front end code.