adds altTag method to $scope