js: getChilds and getReferrals