I am using SheetJS library to write an output into excel. This is how I create the WS:
var WSdata = []; WSdata.push({test: "Test unsucessfull",