Update server.js

make port exportable