Fix order of calls in README example
Merge pull request #1 from aredridel/fix-example-variable-scope

readme: fix order of calls in example