use $.ajax instead of $.getJson and added comments.

$.ajax is helps consistency while learning.