fix closure and do syntax
Merge pull request #4 from itdaniher/master

fix closure and do syntax