Finally fix getSpreadsheet.js