Switched from this to var name to avoid context issues
Merge pull request #59 from rschmukler/this-fix

Use of this keyword can break in wrong context