Update server.js

Replacing local module initialization with more compact and readable form.