Design of a local http server using node.js