JSAPI to $hi for Basic Chat

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