Autocomplete improvements

- Focus input after choose contact from autocomplete using mouse click
- On double click to edit contact, don't remove current contact text
Exclusive write access to JS/CSS files to prevent race conditions with multiple simultaneous writes