Working on front-end to consume web service using AJAX