reconfigure some of app.js for proper behaviour on AWS EC2 server