code: function downloadGCode() {
      console.log('downloadGCode:', file.name);
      var gCodeFile = new Blob([gcode], { type: 'text/plain;charset=utf-8' });
      saveAs(gCodeFile, file.name + '.gcode');
  }
docs: Download gcode