Update server.js

Use node's `util.inherits` for prototypal inheritance, does the repetitive lifting for you.