implemented new singletonHub js module.