[evita] dom/text/modes: Use |class| for |Mode| JS class implementation.