simplified server.js