removing server.js and moved its content to main.js