refactoring : (new feature) jsmanager