solve html bugs when merged(repeated click event and loss of id). split room.js