Using data from json to populate the page