AJAX module fix

Check config and page object exists first

Also fix bad `rev` response