$(document).ready(function () {

$('button').click(function() {

    var product_id = "055-02-3741"
    var url = 'https://api.target.com/items/v3/' + product_id + '?id_type=dpci&store_id=530&fields=ids,descriptions,locations,pricing,images&mode=online&key=1Kfdqvy6wHmvJ4LDyAVOl7saCBoKHcSb';


    // var data = {
    //   id_type : 'dpci',
    //   store_id : '530',
    //   fields : 'ids,descriptions,locations,pricing,images',
    //   // fields : ['ids','descriptions','locations','pricing','images'],
    //   mode : 'online',
    //   key : '1Kfdqvy6wHmvJ4LDyAVOl7saCBoKHcSb'
    // };

    $.getJSON(url,function (response.addHeader("Access-Control-Allow-Origin", "*")) {


      var callback = function(response) {

        var responseHTML = '<ul class="tbu">';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_description.value + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_price.current_price + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_price.original_price + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.image.internal_primary_image_url + '</li>';

      };

    }); // end getJSON

  }); // end button.click

}); // end ready
$(document).ready(function () {

$('button').click(function() {

    var product_id = "055-02-3741"
    var url = 'https://api.target.com/items/v3/' + product_id + '?id_type=dpci&store_id=530&fields=ids,descriptions,locations,pricing,images&mode=online&key=1Kfdqvy6wHmvJ4LDyAVOl7saCBoKHcSb';


    // var data = {
    //   id_type : 'dpci',
    //   store_id : '530',
    //   fields : 'ids,descriptions,locations,pricing,images',
    //   // fields : ['ids','descriptions','locations','pricing','images'],
    //   mode : 'online',
    //   key : '1Kfdqvy6wHmvJ4LDyAVOl7saCBoKHcSb'
    // };

    response.addHeader("Access-Control-Allow-Origin", "*")

    $.getJSON(url,function (response) {


      var callback = function(response) {

        var responseHTML = '<ul class="tbu">';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_description.value + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_price.current_price + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.online_price.original_price + '</li>';
        responseHTML += '<li class="detail">' + product_composite_response.items.image.internal_primary_image_url + '</li>';

      };

    }); // end getJSON

  }); // end button.click

}); // end ready
change response