google apps script for my diplom (auto replacement & stuff)