javascript fxn in chatroom show