Fix request::isAjax function