add configuration hooks for autocomplete javascript