Update server.js

Updated for Express 4 support.