convert different json, xls, xlsx file types to table in nodejs