adding app script code