Well, a singleton in a web application live until you refresh the browser and will be created again afterward since you're browser reload the java script and clean everything that was in memory.
The concept of a singleton only apply to in-memory objects and is short lived. If you want to persist something longer than that's it's not a Singleton anymore, but a serialized object shared and synchronized. You should look at cookies and local storage to do that.
Cheers,