common js for pc sync gaia app and tool