define([
    'text!basket.html!strip'
  , 'css!basket'
  ],
  function (source) {
    var response = {};

    response.data = source;
    response.callback = function (self) {
      if (window.App === undefined) {
        def = new $.Deferred;

        def.done(function(gadget) {
          // prefix instance-ids, pass JSON
          window.App.renderGadgets(gadget);
        });

        window.fallbackLoader.deferreds.push(def);
        window.fallbackLoader.args.push(self);
      } else {
        // prefix instance-ids, pass JSON
        window.App.renderGadgets(self);
      }
    };

  // return response object
  return response;
  }
);
