Make layer names correspond to CSS ID of generated DOM elements. Add validations to ensure layer names conform to valid CSS, add related tests, and include new data in generated DOM in pages#show.