Add documentMethods and documentSelectors.