Here is my first (semi) professional faceted search JS file.
I append semi to the professional because it is still a work-in-development. What I am especially uncertain about is how to do asynchronicity: how should I handle the queries to the HEK server? Mainly, I don’t want the program to hang if the server times out. Also, I want the code to continue doing stuff even if it has to wait for a few seconds to receieve a reply from the HEK server. I was initially planning to have the code “hang” on the XMLhttpRequest.send for a few hundred milliseconds; then, if no reply was had, have it just continue onto the other queries, then later return to again query for the event.