Chat, based on websockets with smooth animation and protected from xss