update output refs when question ID changes

I think `$.ui.autocomplete.escapeRegex` can be shortened to `RegExp.escape`.