pesudo-working js codes for roomselection.html