Update room.js

remove instanceof requirement