 
         buildColHeaderHeadersClickEvents = (colHeaderHeaders, colHeaderCols, colAttrs) ->
             n = colAttrs.length-1
-            for i in [0..n] when i < n 
+            for i in [0..n] when i < n
                 th = colHeaderHeaders[i].th
                 colAttr = colAttrs[i]
                 th.onclick = (event) ->


        replaceClass = (element, replaceClassName, byClassName) ->
            removeClass element, replaceClassName
            addClass element, byClassName 
        # Based on http://stackoverflow.com/questions/195951/change-an-elements-class-with-javascript -- End 

        getTableEventHandlers = (value, rowValues, colValues) ->
            return if not opts.table and not opts.table.eventHandlers


        buildRowHeaderHeadersClickEvents = (rowHeaderHeaders, rowHeaderRows, rowAttrs) ->
            n = rowAttrs.length-1
            for i in [0..n] when i < n
                th = rowHeaderHeaders.hh[i]
                rowAttr = rowAttrs[i]
                th.th.onclick = (event) ->
