rename calling a function in server.js