function analyzeNewsHeadlines() {
  // Clears and reformats the sheet
  reformatSheet();

  // Gets the headlines array
  headlines = getHeadlinesArray();

  // Syncs the headlines array to the sheet using a single setValues call 
  if (headlines.length > 0){
    ds.getRange(2, 1, headlines.length, headlineCol+1).setValues(headlines);
    // Set global rowValues
    rows = ds.getDataRange();
    rowValues = rows.getValues();
    getSentiments();
  } else {
    ss.toast("No headlines returned for topic: " + topic + '!');
  }
}
For each headline cell, calls the Natural Language API to get general sentiment and then updates
the sentiment response column.