tarunc/createSingleton — pull request #2 by hqm42 (2013-10-08 13:07:51+00:00)
Title: do not expose the singleton instance

Keep the singleton instance inside the createSingleton closure. We do not need Math.random() or a "secret" property on the constructor.