client detection and ajax-php