refactor($ionicPopup): remove test/temp code