Updating the readme to avoid undefined global variable error if someone copies...

... the example

issue #2

This PR fixes the error in the readme