selected friend data structure complete

I have formed a js array called friendToDb to include all the uid of
selected friends, which can be used to post to the DB