updated google app script for events