The HostSurfer class, implemented in hostsurfer.js javascript file, exposes the following interface: