anchor.diff:                    false
                   );
   
  -                function handleFiles(fileList) {
  -                  if (fileList.length === 1) {
  -                    var fileSelector = $("#handin_show_assessment input[type='file']").get(0);
  -                    fileSelector.files = fileList;
  -                    showFiles();
  -                  } else {
  -                    // invalid number of files alert
  -                  }
  -                }
  -
                   function showFiles() {
                     var fileSelector = $("#handin_show_assessment input[type='file']").get(0);
                     var file = fileSelector.files[0];
  -                  console.log(file);
                     $("#handin-file-name").text(file.name);
                     $("#handin-modify-date").text(moment(file.lastModified).format("MMMM Do YYYY, h:mm a"));
  +                  submittedFile = false;
   
                     var sOutput = file.size + " bytes";
                     for (var aMultiples = ["kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], nMultiple = 0, nApprox = file.size / 1024; nApprox > 1; nApprox /= 1024, nMultiple++) {
  
positive.code:                   e.preventDefault();
                    var fileSelector = $("#handin_show_assessment input[type='file']").get(0);
                    fileSelector.value = null;
                    $(".handin-row").show();
                    $(".handedin-row").hide();
                    enableSubmit();
                  });
  
                  function enableSubmit() {
  
negative.code:                     }
                    }
  
                    if (fileSelector.files.length === 1) {
                        $(".handin-row").hide();
                        $(".handedin-row").show();
                        enableSubmit();
                    }
                  }
  
                  $("#integrity_checkbox").change(function (e) {
  