changed port to work with heroku
changed the port to switch based on operating system environment: Heroku or OSX.