Undefined variable

Defining $gTText early on as it's used in if statements later.
Fixes #5