JS updates for referral modal