a simple nodejs server implementation