Refactor AngularJS: friends.html