update app.js to use server logging and the port as a variable