Changed order of logging

Conventionally logging actions is done after the action finishes so this doesn't happen:

    Server listening on port 3000
    Uncaught Exception at server.listen(port): blahblah
    app.js exited with code 255
    user@linux:~/Chat-Server$
Merge pull request #1 from CodingWithClass/patch-1

Changed order of logging