refactor to JintPlugin