MDL-66312 js: Autocomplete promises were inside out