added autocomplete to main.js