resolve_url.js: resolve https url