classList was not initialized on elements