add javascript to autocomplpop.