html client uses location.host instead of hard-coded host