I\'m inexperienced at JavaScript, and don\'t know how to optimize things for my situation.
I\'ve written an autocomplete function using the JQueryUI Autocomplete plug