made DOM fulfillment a separate function from the getJSON