added the code for extracting the json from subreddits and displaying the locations'