Check request, ajax or not ajax