js for getting info from zg; start relations