Issue #24 - Updated helper to handle root page.
Merge pull request #26 from alim/Issue_24

Issue #24 - Updated helper to handle root page.