Spent awhile trying to figure out what was wrong with the CAPTCHA. Turns out it was a single line of code reinitializing the app variable =/