 {
                elem.value = value;
            }
        }

        function setTextContent(id, value) {
            return document.getElementById(id).textContent = value;
        }

        function setError(message) {
            return setTextContent(ERRORS_ID, message ? message : '');
        }

        function setCode(id, obj) {
            const contents = atob(obj['new_contents']);
            const name = obj['workspace_relative_path'];
            setTextContent(id, contents ? contents : '// 