Popup angular.js service