Added some junk code into client

code attained from: 
https://github.com/guille/chat-example/blob/master/index.html