first version of google calendar autocomplete code.