fix bug in autocomplete handling javascript which prevents tag autocomplete working

possibly affects other AJAX items