Update server.js

Trying to simplify params passing.