Thanks to Chetan Sastry I have this Regex code to parse my page for a list of words and add the TM to them.
var wordList = [\"jQuery UI\", \"jQuery\", \"is\"]; v
what about adding "jQuery" and "jQuery UI" to your list of search terms? (You'll need to escape the special characters for RegEx to work properly but it might be an easier (if less elegant) solution.)
"jQuery"
"jQuery UI"