first cut to update autocomplete.js with sockets