get friends in controller.js