minor change: updated so it runs with socket.io version 1.0