Updated referrals.js