SimpleSerial example slightly modified to output to console.log