fix equality
error handling when joining a room
add comments
add test for room
move DOM selection to a separate module