autocomplete and custom js code