anchor.diff:  };
   
   // add event on input file
  -var addEventToInputFile = function(id) {
  +function addEventToInputFile(id) {
     $('#' + id).on('change', fileSelectAndUpload);
   };
   
   // upload file via ajax
  -var fileSelectAndUpload = function(evt) {
  +function fileSelectAndUpload(evt) {
     var file = evt.target.files[0];
   
     if(file) {
  
positive.code: });
  
  // scroll to
  var scrollTo = function(id) {
    if(id) {
      $('html, body').animate({
        scrollTop: $('#' + id).offset().top
  
negative.code: };
  
  // generate random id
  function generateID() {
    return '_' + Math.random().toString(36).substr(2, 9);
  };
  
  // active medium editor plugin
  function activeMediumEditor() {
    var editor = new MediumEditor('.cb-text', {
      placeholder: {
        text: '',
  