Update server.js

Hey, great demo!

While testing it, I found out that if a user close the browser without being in a room - it won't handle this scenario in the purge function. :)
Merge pull request #2 from guysch/patch-1

Update server.js