I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP