Fix console warnings about undefined variables
Merge pull request #42 from cork/master

Fix console warnings about undefined variables