move test.js to server.js