Update server.js

Since writeHead() inside serve_static_content() is always executed, the writeHead() inside rs.on('error') will make the server crash because res.writeHead() can only be used once on a res object;