Processing commands that interact with LEDs in Node.js