tons of changes with javascript and autocomplete