episode 22 additions - manipulating the DOM in response to messages recieved via sockets