The Singleton Pattern in JavaScript