add socket.io dependencies
make sure server connected to socket.io is listening
slight changes to the way socket.io is loaded on client