abstracted port, cleaned server.js