Fix javascript autocomplete tests