code: function getStateValues (size, self) {
    var width = $(self.getDOMNode()).width();
    return {
      profile: width > size ? 'large' : 'small'
    };
  }
docs: simple function to return the state object that contains the "profile" value