
    (function() {
        if (document.currentScript === null) return;
        var root = document.currentScript.src.replace(/index\.js.*/, '');
        function renderScript(f, msg) {
            var script = document.createElement('script');
            script.src = root + f;
            script.async = false;
            if (msg === true)
                script.onload = function () {
                    window.postMessage('wellstarui.loaded');
                };
            document.head.appendChild(script);
        }
        
        renderScript('static/js/wellstar-ui.js', true);
    })();
