changed server.js to main.js