Add compatibility to IE9, write enter/exit messages only first time.
Fix enter/leave chat counting