Google Apps script for spreadsheets helping generating multiple rows from a base row in a specific format