app js modified taking port from the environment