Don't leak to global
Merge pull request #24 from lloydwatkin/master

Don't leak attrName to global scope