Changing PORT variable to process.env.PORT or 2377 ( for Heroku )