Chat example adjusted to $hi API

Signed-off-by: Lars Johansson <newmedia@xs4all.nl>