moved chat socket.on to footer