refactoring hscript (jsscript) helper manager