Add yyDOM module for DOM manipulation.
Avoid modifying symbol element after insertion.
Switch case looks better.