Update server.js

This fix is required to work with the latest version of node, currently v0.11.13-pre .