Replace all references to cell.cellIndex by $(cell).index() to prevent error

"Unexpected call to method or property access."
see: http://stackoverflow.com/questions/14201168/table-cell-index-problems-in-ie8
closes #551