Fixing crash from example code in Readme

The example code in the read me would cause a deprecated error when trying to load a page.
Merge pull request #16 from TomSpeak/patch-1

Fixing crash from example code in Readme