Restored isAjax and getMethod