Declared previously unresolved variable 'self'
Merge pull request #451 from veelen/master

 Declared previously unresolved variable 'self'
Fix undeclared var
Fix undeclared var
update readme