Global variables accidentally created in basic demo

I came across a syntax error in the downloaded version. Looks like it's been fixed in the repo, but not quite in the correct way.
Merge pull request #106 from alnorth29/master

Global variables accidentally created in basic demo