       var modeElement = document.getElementById("mode");
                        mode = modeElement.options[modeElement.selectedIndex].label;
                        var IDE = ace.edit("IDE");
                        IDE.session.setMode("ace/mode/" + mode);
                        var code = $('<textarea />').html(`{{ code_text }}`).text();
                        IDE.setValue(code, -1);
                        document.addEventListener("DOMContentLoaded", function(event){
                            $("#m