updated nodeRestToSerial.js