Set up pages; added JS;