Single ton pattern. JavaScript Design Patterns: 20 Patterns for Expert Code : The Singleton Design Pattern