roomtype javascript