Fix utils.js for https in serverFromURL

Set `useSSL` parameter in `serverFromURL` based on protocol.