Indexes start at 0 and Excel rows/columns start at 1. To get the code to work, you need to account for this difference. Below is my code in vb script. This works for me. (Sorry, I don't know Jscript.) Hope this helps.
******************************************************************************
Sub Main
dim fp, i, j, Table, RowCount, ColCount, Data, ii, jj
fp = FilePath' This is the file path of your Excel File
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open(fp)
Set objSheet = objExcel.ActiveWorkbook.WorkSheets("Sheet1")
objWorkbook.WorkSheets("Sheet1").Activate
Set Table = Project.Variables.TestTable ' I created a Table Variable to read from
RowCount = Table.RowCount
ColCount = Table.ColumnCount
For i = 0 to RowCount - 1 ' Row index 1 to rowcount - 1 to account for index starting at 0
ii = i + 1 ' increase by to account for the difference between the index and Excel numbering for rows
For j = 0 to ColCount - 1 ' Column index 1 to colcount - 1 to account for index starting at 0
jj = j+1 ' increase by to account for the difference between the index and Excel numbering for columns
Data = Table.Item(i,j) ' the data read from the table
Call Log.Message(Data) ' log the data read
objWorkbook.Worksheets("Sheet1").cells(jj,ii) = Data ' write the data to the Excel workbook
Next
Next
objWorkbook.Save
objWorkbook.Close
objExcel.quit
End Sub