url = (p.ajaxUrl) ? p.ajaxUrl
                // allow using "{page+1}" in the url string to switch to a non-zero based index
                .replace(/\{page([\-+]\d+)?\}/, function(s, n){ return p.page + (n ? parseInt(n, 10) : 0); })
                // this will pass "all" to server when size is set to "all"
                .replace(/\{size\}/g, p.size) : '',