Fix google app scripts code