simple chat client built using javascript and websockets