old_contents: const Functions = {
    getMetaContent: function(name) {
      var metas = document.getElementsByTagName('meta');
  
      for (var i=0; i<metas.length; i++) {
        if (metas[i].getAttribute("name") == name) {
          return metas[i].getAttribute("content");
        }
      }
  
      return "";
    },
    downloadFile(file) {
      const {contents, name} = file;
      const link = document.createElement('a');
      link.download = name;
      link.href = contents;
      //link.click();
      let event = new MouseEvent('click', {
        'view': window,
        'bubbles': true,
        'cancelable': true
      });
      link.dispatchEvent(event);
    }
  };
  
  module.exports = Functions;
  
new_contents: const Functions = {
    getMetaContent: function(name) {
      var metas = document.getElementsByTagName('meta');
  
      for (var i=0; i<metas.length; i++) {
        if (metas[i].getAttribute("name") == name) {
          return metas[i].getAttribute("content");
        }
      }
  
      return "";
    },
    downloadFile(file) {
      const {contents, name} = file;
      const link = document.createElement('a');
      link.download = name;
      link.href = contents;
      let event = new MouseEvent('click', {
        'view': window,
        'bubbles': true,
        'cancelable': true
      });
      link.dispatchEvent(event);
    }
  };
  
  module.exports = Functions;
  
subject: Update Functions.js