Use hostname instead of host on javascript webrtc bridge client code

This prevents it from appending the port number when a request is made from
the HTML5 client