minimal jshint changes
more clean rowGrouping JS