Change Singleton for JS