code for google script V3 reformated (indent)