pages and js