Google apps scripts for several tasks