Allow to pass a callback as ajax.url