Trying out how to make HTTP requests using $.ajax function of JQuery