node.JS relay control component