JavaScript Design Patterns. Implementation and description