added a copy of fullPage code