working on fixing the PageComponent model in .js