Fixed issue #7 with closure scope.
Merge pull request #8 from chriscdn/master

Fixed issue #7 with closure scope.