Updated autocomplete JS script in tools.js