Real-time updating of files using socket.io