Tag Design Patterns In JavaScript