Minor refactoring and optimization.

tAttr.tabindex || 0 would be faster. Objections?