Add this to the start of the script
js code:
var messages = new Array("Hi", "Hai", "Hello", "Hey");
and change this line:
js code:
oChatWnd.SendMessage('hai');
to this:
js code:
oChatWnd.SendMessage(messages[Math.floor(Math.random()*(messages.length+1)])
Haven't tested, but that should work