update ajax() signature to match _ajax()

This is a follow-up on #241: since we changed the signature of `_ajax()` method, the corresponding alias/helper `ajax()` should be updated too.