Fix for ReferenceError
Merge pull request #6 from petschekr/master

Fix for fatal ReferenceError