Update server.js

Use node's util.inherits for prototypal inheritance