 ace and extensions
require(["ace/ace", "ace/mode/javascript", "ace/ext/language_tools", "ace/ext/inline_autocomplete"], function(ace, codeLens) {
    var editor = ace.edit("editor");
    editor.session.setMode("ace/mode/javascript");
    editor.setTheme("ace/theme/tomorrow");
    // enable inline autocompletion
    editor.setOptions({
        enableBasicAutocompletion: false,
        enableInlineAutocompletion: true,
        enableSnippets: true,
        enableLiveAutocompletion: false
    });

    window.