function displayResults(completions,requestId) {
                if (requestId && requestId !== that.pendingRequest) {
                    // This request has been superseded
                    return
                }
                if (!completions || completions.length === 0) {
                    if (that.completionMenuShown) {
                        that.menu.hide();
                    }
                    return
                }
                if (that.completionMenuShown) {
                    that.menu.options(completions);
                } else {
                    that._showCompletionMenu(completions);
                }
            }
Attach to an <input type="text"> to provide auto-complete

$("#node-red-text").autoComplete({
    search: function(value) { return ['a','b','c'] }
})

options:

 search:    function(value, [done])
            A function that is passed the current contents of the input whenever
            it changes.
            The function must either return auto-complete options, or pass them
            to the optional 'done' parameter.
            If the function signature includes 'done', it must be used
 minLength: number
            If `minLength` is 0, pressing down arrow will show the list

The auto-complete options should be an array of objects in the form:
 {
     value: String : the value to insert if selected
     label: String|DOM Element : the label to display in the dropdown.
 }