Updated ws-url-builder.js with latest version.

Includes fix for getting the default host name.