Adds ability to accept/decline pending friendships through javascript