Generating a Google document from spreadsheet data using a script