updated js to reflect my move of .pageA/B classes from body to html