Update request.php

added isAjax() to detect ajax based requests