move server.js to index.js