anchor.diff:  $(document).ready(do_layout_elems);
   $(window).resize(do_layout_elems);
   
  +$(window).on('beforeunload', function() {
  +  if (last_saved_content == cur_content) {
  +    return;
  +  } else {
  +    return "Content is not saved yet.";
  +  }
  +});
  +
   </script>
  
positive.code: </div>
  
  <script>
  
  var cur_content = $("#edit-content").val();
  var last_saved_content = cur_content;
  
negative.code:     set_status("not-saved", "Modified");
    }
  }
  var status_updator = setInterval(update_status, 10 * 1000);
  
  function readable_time_diff(a, b) {
    var ms_diff = a - b;
  