renamed web.js to server.js; removed fs.exist anti-pattern
server.js: refactoring