Remote control working with socket.io