Make example html portable.

This doesn't force localhost instead using location.

This enables eg tunneling to work correctly.