hooked room.js into firebase