Added in ajax code to get json object

Initial skeleton for json fetching, commented out for now