amended app.js to http server