anchor.diff:      jqxhr.fail(ajaxError);
     }
   
  -  function createCommentOnExercise(file_id, row, editor, commenttext){
  -      var jqxhr = $.ajax({
  -          data: {
  -              comment: {
  -                  file_id: file_id,
  -                  row: row,
  -                  column: 0,
  -                  text: commenttext,
  -                  request_id: $('h4#exercise_caption').data('rfc-id')
  -              }
  -          },
  -          dataType: 'json',
  -          method: 'POST',
  -          url:  "/comments"
  -      });
  -      jqxhr.done(function(response){
  -          setAnnotations(editor, file_id);
  -      });
  -      jqxhr.fail(ajaxError);
  -  }
  -
     function handleSidebarClick(e) {
       var target  = e.domEvent.target;
       var editor =  e.editor;
  
positive.code: <script type="text/javascript">
  
    var solvedButton = $('#mark-as-solved-button');
    var commentOnExerciseButton = $('#comment-exercise-button');
    var addCommentExerciseButton = $('#addCommentExerciseButton');
  
    var thankYouContainer = $('#thank-you-container');
  
negative.code: 
        $.each(response, function(index, comment) {
          comment.className = 'code-ocean_comment';
        });
        session.setAnnotations(response);
      })
  