new pages and javascript