added waitForRoute function to client template
Merge pull request #82 from blazer82/wait-for-route

added waitForRoute function to client template