created basic service with AJAX call