Chat application using nodejs and socket