various macros for Google Apps Script