Updated chat example to work in IE8