It seems like the variable a is pointless and that one line should be:
this.bookmarkRoot.createChild(words[i], "pageNum = " + p);
It seems like the variable a is pointless and that one line should be:
this.bookmarkRoot.createChild(words[i], "pageNum = " + p);