added data from data.js and looped through it to generate the friend list.