add theme javascript to pages layout