refactor plugin -> js-base