Updated to use standard websocket instead of socket.io, as older browser support in this project is really not needed