Dynamic Hostname in example.html

Added dynamic hostname in example.html to replace 'xyz' with the
hostname and port from the http request header