Summon2 translator

A new translator for working with Summon 2.0 and its endless scroll weirdness. It gets data for all the references that have been loaded on the page. It counts the number of refs on the page, queries Summon's API to get that same number back, sorts the data into the same order as shown on the page, and then populates the items. (It has to get 10 refs from the API at a time because that's how Summon loads them on the page. Trying to get more in a single call actually generates a different result set, strangely enough.)
Wait, to clarify: were you referring to the Zotero.selectItems function, or my selectTitles function? Because I am using a callback in Zotero.selectItems. I have it inside a unique function called selectTitles, which first gets the titles and sets up the position indexes before sending the titles to Zotero.selectItems. After the user's picked the item titles they want (and the visual order no longer matters), the indexes are reformatted for easier parsing. The indexes are later used to directly pull specific data items from the JSON returned by the API.

Just wanted to make sure what the intent is. Am I supposed to have more of this logic inside callbacks, or did I simply choose a very confusing function name?