set height and width of PAGES with js