fixed a url fragment issue with web socket url on page load for room hashes

There is an issue on page load when you have a room hash in the url.
You get a url fragment error and the socket connection does not succeed
Merge pull request #14 from mattnull/master

URL fragment issue