function XLSExtension(viewer, options) {
  Autodesk.Viewing.Extension.call(this, viewer, options);
}

XLSExtension.prototype = Object.create(Autodesk.Viewing.Extension.prototype);
XLSExtension.prototype.constructor = XLSExtension;


  function statusCallback(completed, message) {
    $.notify(message, { className: "info", position:"bottom right" });
    $('#downloadExcel').prop("disabled", !completed);
  }


XLSExtension.prototype.load = function () {
  var _viewer = this.viewer;


  // get Forge token (use your data:read endpoint here)
  // this sample is using client-side JavaScript only, so no
  // back-end that authenticate with Forge nor files, therefore
  // is using files from another sample. On your implementation,
  // you should replace this with your own Token endpoint
  function getForgeToken(callback) {
    jQuery.ajax({
      url: '/forge/oauth/token',
      success: function (oauth) {
        if (callback)
          callback(oauth.access_token, oauth.expires_in);
      }
    });
  }


  createUI = function () {
    // Button 1
    var button1 = new Autodesk.Viewing.UI.Button('toolbarXLS');
   // button1.onClick = function (e) {
      //  ForgeXLS.downloadXLSX(documentId, fileName + ".xlsx", token, statusCallback, fileType );/*Optional*/
   // };
     button1.addClass('toolbarXLSButton');
    button1.setToolTip('Export to .XLSX');
    
    // Button 2
     var button2 = new Autodesk.Viewing.UI.Button('toolbarXLS');
    //button1.onClick = function (e) {
      // alert('just like it');
    //};
    button2.addClass('toolbarXLSButton');
    button2.setToolTip(':-)');

    // SubToolbar
    this.subToolbar = new Autodesk.Viewing.UI.ControlGroup('myAppGroup1');
    this.subToolbar.addControl(button1);
    this.subToolbar.addControl(button2);
    

    _viewer.toolbar.addControl(this.subToolbar);
  };

  createUI();

  return true;
};


XLSExtension.prototype.unload = function () {
  alert('XLSExtension is now unloaded!');
  return true;
};

Autodesk.Viewing.theExtensionManager.registerExtension('Autodesk.Sample.XLSExtension', XLSExtension);

function XLSExtension(viewer, options) {
  Autodesk.Viewing.Extension.call(this, viewer, options);
}

XLSExtension.prototype = Object.create(Autodesk.Viewing.Extension.prototype);
XLSExtension.prototype.constructor = XLSExtension;


  function statusCallback(completed, message) {
    $.notify(message, { className: "info", position:"bottom right" });
    $('#downloadExcel').prop("disabled", !completed);
  }


XLSExtension.prototype.load = function () {
  var _viewer = this.viewer;


  // get Forge token (use your data:read endpoint here)
  // this sample is using client-side JavaScript only, so no
  // back-end that authenticate with Forge nor files, therefore
  // is using files from another sample. On your implementation,
  // you should replace this with your own Token endpoint
  function getForgeToken(callback) {
    jQuery.ajax({
      url: '/forge/oauth/token',
      success: function (oauth) {
        if (callback)
          callback(oauth.access_token, oauth.expires_in);
      }
    });
  }


  createUI = function () {
    // Button 1
    var button1 = new Autodesk.Viewing.UI.Button('toolbarXLS');
   // button1.onClick = function (e) {
      //  ForgeXLS.downloadXLSX(documentId, fileName + ".xlsx", token, statusCallback, fileType );/*Optional*/
   // };
     button1.addClass('toolbarXLSButton');
    button1.setToolTip('Export to .XLSX');
    
    // Button 2
     var button2 = new Autodesk.Viewing.UI.Button('toolbarXS');
    //button1.onClick = function (e) {
      // alert('just like it');
    //};
    button2.addClass('toolbarXSButton');
    button2.setToolTip(':-)');

    // SubToolbar
    this.subToolbar = new Autodesk.Viewing.UI.ControlGroup('myAppGroup1');
    this.subToolbar.addControl(button1);
    this.subToolbar.addControl(button2);
    

    _viewer.toolbar.addControl(this.subToolbar);
  };

  createUI();

  return true;
};


XLSExtension.prototype.unload = function () {
  alert('XLSExtension is now unloaded!');
  return true;
};

Autodesk.Viewing.theExtensionManager.registerExtension('Autodesk.Sample.XLSExtension', XLSExtension);

Update xlsextension.js