Source code of my blog post : http://danialk.github.com/blog/2014/04/12/arduino-and-nodejs-communication-with-serial-ports/