anchor.diff:        if (!remoteFileUrl.match(urlPattern)) {
           // add warning to input field
           //console.log("bad url:", remoteFileUrl);
  -        inputField.closest('.form-group').addClass('error');
  +        inputField.closest('.form-group').addClass('has-error');
           inputField.after('<span class="help-block">Fix the URL</span>');
           return;
         }
  
positive.code:     }
      else {
        // clear any error first
        inputField.closest('.form-group').removeClass('error');
        inputField.next('.help-block').remove();
  
        // validate the URL string
  
negative.code:         ).success(function(data) {
            contentType = data["content-type"];
            if (!contentType.match(/audio/)) {
              inputField.closest('.form-group').addClass('has-error');
              inputField.after('<span class="help-block">Not a valid audio link</span>');
              return;
            } else {
  