moved autocomplete js block to parent block