move server.js to scripts