BUM-2672: modified node-js SDK to allow for a configurable hostname