decoratePageContent is now a method of the apos object