changed the Pages extension to add CSS/JS beforeInit