adapt allCocktails on scope from variable to function