adding referrals.js to index.html