Add isAjax check for json request