Grab room name from location.pathname suffix
(instead of splitting location.href, which includes search and hash)
Fix regex for replacing http with ws