Add jamespath support
Refactor nextPage implementation to use jamespath expressions