docs: function onFailure(err) {
            _removeDOMElement(placeholder);
            if (console && console.debug) {
              console.debug('The following error occured: ', err);
            }
  
            /* Call custom callback */
            if ($scope.onError) {
              $scope.onError({err:err});
            }
  
            return;
          }