Add js to autocomplete input