ComputeColumnIndex performance tweaks

* use loop counters instead of DOM/jquery methods for row & cell indexes
* use DOM setAttribute instead of jquery data