Modified server.listen to work in both Cloud9 and locally