Fixes issue with hoisted variables being set to undefined rather to
this.UNDEFINED.
Merge pull request #8 from chughes87/master

Fixes issue with hoisted variables being set to undefined rather to this.UNDEFINED.