adding isAjax() method to Request.