fix bug at ToGreenTeaScript.sh
fix typescript build error