JavaScript versus Google Apps Script