Front end (client) of referral app using AngularJS