build-screen: use document.location.hostname instead of document.location.host

In the case of the address is `http://localhost:9000`, 
`"ws://" + document.location.hostname + ":8080")` become `http://localhost:9000:8080` because `document.location.host` returns `localhost:9000`.