Add the generation code for the autocomplete symbol list.
JavaScript part of autocomplete implementation.