added a new method `ajax`