var self defined in wrong scope
Merge pull request #10 from wilsonpage/diego-refactor

var self defined in wrong scope