room-logic: room.js file added