update pages and js