fix server.js

https://github.com/LearnBoost/mongoose/pull/1546