autocomplete.js es5 compliance

Some syntax was es6 specific, whereas we made the decision to stick with
es5 for better compatibility for our users.

See #2694
6 jobs for feature-c/es5_tags in 4 minutes and 20 seconds (queued for 2 seconds)