minor refactoring
minor refactor for NodeJsContentPlugin