small updates for server.js

sendfile is deprecated, changed to sendFile; removed hard-coded port number