Make websocket host match document host

        - Removed hardcoded localhost in websocket instantiation