Clean up JS
Convert Autocomplete to use promises