Cleaned and added some comments to lobbies javascript