working service and AJAX