use res.end(data) instead of res.write(data);res.end();

If data is specified, it is equivalent to calling response.write(data, encoding) followed by response.end().
Updated README.md