settings.jsFiles.length; i++) {
                document.write('<scr' + 'ipt type="text/javascript" src="' + CMsettings.path + CMsettings.jsFiles[i] + '"></scr' + 'ipt>');
            }

            window.onload = start;
        }());

        function start() {// Initialise (on load)
            "use strict";

            if (typeof (window.CodeMirror) !== 'function') {
                alert('CodeMirror not found in "' + CMsettings.path + '", aborting...');
                return;
            }

         