$(function () {
    $("#btnExcel").click(function () {
        alasql('SELECT * INTO XLSX("' + $(this).data('file') + '.xlsx", {headers:true})\
    FROM HTML("#resultTable table", {headers:true})');
    });
});
