syncing with js gamedata