function generate (name, options) {
  options = options || {};

  return function (args) {
    args = [].slice.call(arguments);
    window[name] || (window[name] = []);
    options.wrap === false
      ? window[name].push.apply(window[name], args)
      : window[name].push(args);
  };
}
Generate a global queue pushing method with `name`.

@param {String} name
@param {Object} options
  @property {Boolean} wrap
@return {Function}