fix brackets in js expression to focus autocomplete field