Fixed two small js bugs

* Autocomplete spinner kept spinning
* Reverted earlier change which prevented focus kw div to show up